package org.cybot.generator;

import java.util.ArrayList;
import java.util.List;

import org.cybot.entities.Circuit;
import org.cybot.entities.Point3D;

public class CircuitGenerator extends AbstractGenerator<Circuit> {

	public Circuit generateInstance(Object... params) {
		Double length = 185000d;
		List<Point3D> points = new ArrayList<Point3D>();

		long pointCount = Math.round(length / 40);
		for (int i = 0; i < pointCount; i++) {
			points.add(new Point3D(i * 40d, 0d));
		}

		return new Circuit(length, points);
	}

}
